# Maintainer: duapple <747357766@qq.com>

pkgname=i3ipc-glib

pkgver=0.1.0
pkgrel=2
pkgdesc="A C interface library to i3wm"
arch=('i686' 'x86_64')
url="https://gitee.com/liushuai05/i3ipc-glib.git"
license=('GPL3')

depends=('glib2' 'json-glib')
optdepends=(
    'i3ipc-lua: Lua language bindings'
    'i3ipc-python: Python language bindings'
    'i3ipc-gjs: JavaScript language bindings'
)
makedepends=('git' 'libxcb' 'xcb-proto' 'gobject-introspection' 'gtk-doc')
source=("${pkgname}-${pkgver}::git+${url}")
noextract=()
sha256sums=("SKIP")

prepare() {
    cd ${pkgname}-${pkgver}

}
build() {
	cd ${pkgname}-${pkgver}
	sudo ./autogen.sh
	make
	sudo make install
}

package() {
    cd ${pkgname}-${pkgver}

	mv i3ipc-glib.conf /etc/ld.so.conf.d/ 
	    ldconfig
}
